package com.wu.service.impl;

import com.wu.pojo.vo.HotsearchVo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.wu.mappers.HotsearchMapper;
import com.wu.pojo.Hotsearch;
import com.wu.service.HotsearchService;

import java.util.List;

/**
@author sun
@date 2022/3/21 - 7:40
*/
@Service
public class HotsearchServiceImpl implements HotsearchService{

    @Resource
    private HotsearchMapper hotsearchMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return hotsearchMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Hotsearch record) {
        return hotsearchMapper.insert(record);
    }

    @Override
    public int insertSelective(Hotsearch record) {
        return hotsearchMapper.insertSelective(record);
    }

    @Override
    public Hotsearch selectByPrimaryKey(Integer id) {
        return hotsearchMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Hotsearch record) {
        return hotsearchMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Hotsearch record) {
        return hotsearchMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotsearchVo> findHotsearch(Hotsearch hotsearch) {
        return hotsearchMapper.findHotsearch(hotsearch);
    }

}
